﻿using System.Xml.Serialization;

namespace HamcoWcs.Models.TibcoMessage
{

    [XmlRoot("MESSAGE")]
    public class MachineModeChangeMessage : BaseTibcoMessage<MachineModeChangeBody>
    {
        public MachineModeChangeMessage()
        {

        }

        public MachineModeChangeMessage(MachineModeChangeBody body = null, string inboxName = "", string listener = "") : base("MachineModeChangeRequest", body, inboxName, listener)
        {
        }
    }



    public class MachineModeChangeBody : LineEventBase
    {
        public MachineModeChangeBody()
        {
        }

        public MachineModeChangeBody(string lineName, string lineOperMode, string portName)
        {
            LineName = lineName;
            LineOperMode = lineOperMode;
            PortName = portName;
        }

        [XmlElement("LINEOPERMODE")]
        public string LineOperMode { get; set; }
        [XmlElement("PORTNAME")]
        public string PortName { get; set; }
    }
}
